<template>
  <div class="not-found-container">
    <img src="/assets/img/404.png" alt="404" class="not-found-image">
    <div class="not-found-text">
      <h1>404</h1>
      <h2>抱歉，您访问的页面不存在</h2>
      <el-button type="primary" @click="goHome">返回首页</el-button>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goHome = () => {
  router.push('/home')
}
</script>

<style lang="scss" scoped>
.not-found-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 50px;
  
  .not-found-image {
    max-width: 300px;
    margin-bottom: 30px;
  }
  
  .not-found-text {
    text-align: center;
    
    h1 {
      font-size: 72px;
      color: #409EFF;
      margin: 0;
    }
    
    h2 {
      font-size: 24px;
      font-weight: normal;
      color: #606266;
      margin: 20px 0 30px;
    }
  }
}
</style> 